<template>
	 <router-view></router-view>  		
</template>
<script>         
export default {
    name: 'wechat',
		route: {
			activate ({ next ,to}) {
				if(localStorage.getItem('get_id')) {
					next()
				} else {
					let message = {
						title:"温馨提示,您还不能访问当前功能",
						content:"您需要先绑定微信账户再登录访问"
					}
					Midway.alert(message);	
					
					$(document).ready(function(){
							let box = $("#main-content").find(".box").first();
							if(box.length>0) {						
								box.text("您需要先绑定微信账户再登录访问");
							} else {
								let str = `<div class='box'>您需要先绑定微信账户再登录访问</div>`;
								let dom = $(str);
								$("#other-content").html(dom)
							}
					})	
					
				}			
			}				
		},	
}
</script>